Place an Order

Once you have validated the required parameters, you can create an order.

Find the POST /v6/acquisitions/orders endpoint in the Acquisitions section of the Swagger documentation.

Before placing an order, you must construct an HTTP body consisting of the order and bib details. The order details are listed first and then followed by the MARC record of the bib that is being ordered. You may choose to use JSON for your data format by specifying the parameter content type in the HTTP header as marc-json, or marc-in-json. A minimum MARC record consists of a leader, directory, 008 field, and 245 field.

Here are two working examples, one simple and one more complex, for the Innovative sandbox. Perform the following steps:

  1. Copy/paste the HTTP Body into Swagger:

    Figure 5: Simple Order
    Simple Example
    API Endpoint POST /v6/acquisitions/orders
    Content-type marc-in-json
    HTTP Body

    {

    "order": {

    "login": "acqstaff1",

    "copies": 10,

    "allocation": [{

    "location": "00",

    "fund": "acfic"

    }

    ],

    "vendor": "vend1"

    },

    "marcContentType": "application/marc-in-json",

    "marc":

    "leader": "00000nam a2200000 a 4500",

    "fields": [{

    "001": "8739"

    }, {

    "008": "690612s1969 caua b 001 0 eng cam "

    }, {

    "100": {

    "subfields": [{

    "a": "Albrecht, Bob,"

    }, {

    "d": "1930-"

    }],

    "ind1": "1",

    "ind2": " "

    }

    }, {

    "700": {

    "subfields": [{

    "a": "Lindberg, Eric."

    }],

    "ind1": "1",

    "ind2": " "

    }

    }, {

    "700": {

    "subfields": [{

    "a": "Mara, Walter."

    }],

    "ind1": "1",

    "ind2": " "

    }

    }, {

    "650": {

    "subfields": [{

    "a": "Mathematics"

    }, {

    "x": "Data processing."

    }],

    "ind1": " ",

    "ind2": "0"

    }

    }, {

    "650": {

    "subfields": [{

    "a": "Computers."

    }],

    "ind1": " ",

    "ind2": "0"

    }

    }, {

    "650": {

    "subfields": [{

    "a": "Programming languages (Electronic

    computers)"

    }],

    "ind1": " ",

    "ind2": "0"

    }

    }, {

    "010": {

    "subfields": [{

    "a": "77004256"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "504": {

    "subfields": [{

    "a": "Bibliography: p. 202."

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "967": {

    "subfields": [{

    "a": "ib10001207"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "260": {

    "subfields": [{

    "a": "Menlo Park, Calif.,"

    }, {

    "b": "Addison-Wesley Pub. Co."

    }, {

    "c": "[1969]"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "300": {

    "subfields": [{

    "a": "204 p."

    }, {

    "b": "illus."

    }, {

    "c": "28 cm."

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "245": {

    "subfields": [{

    "a": "Computer methods in mathematics"

    }, {

    "c": "[by] Robert L. Albrecht, Eric Lindberg [and]

    Walter Mara."

    }],

    "ind1": "1",

    "ind2": "0"

    }

    }, {

    "040": {

    "subfields": [{

    "a": "DLC"

    }, {

    "c": "DLC"

    }, {

    "d": "CSJ"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "049": {

    "subfields": [{

    "a": "CSJS"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "050": {

    "subfields": [{

    "a": "QA76.5"

    }, {

    "b": ".A368"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    "910": {

    "subfields": [{

    "a": "eng"

    }, {

    "b": "901010"

    }, {

    "c": "m"

    }, {

    "d": "a"

    }, {

    "e": "cau"

    }],

    "ind1": " ",

    "ind2": " "

    }

    }, {

    }] "910": {

    "subfields": [{

    "a": "12APR78rev LB 8739"

    }],

    "ind1": " ",

    "ind2": " "

    }

    } }